package com.igeek.compus.backend.singleton;

import org.springframework.beans.factory.annotation.Value;

/**
 * 饿汉式
 */
public class HungrySingleTon {

    private static final HungrySingleTon hungrySingleTon = new HungrySingleTon();

    private byte[] bytes1 = new byte[1024 * 1024];
    private byte[] bytes2 = new byte[1024 * 1024];
    private byte[] bytes3 = new byte[1024 * 1024];
    private byte[] bytes4 = new byte[1024 * 1024];


    // 构造方法私有化
    private HungrySingleTon() {

    }

    public static HungrySingleTon getInstance() {
        return hungrySingleTon;
    }
}
